﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace weiqijiance.尾气流程仪表
{
    public partial class youwenrengong : Form
    {
        public youwenrengong()
        {
            InitializeComponent();
        }
        public string slsh = "";
        public string shphm = "";
        public float fyw = 0f;
        public string syuanyin = "";
        public string scaozuoyuan = "";
        private void youwenrengong_Load(object sender, EventArgs e)
        {
            txtlsh.Text = slsh;
            txthphm.Text = shphm;
            txtczy.Text = scaozuoyuan;

        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (rtbyuanyin.Text == "")
            {
                MessageBox.Show("原因不可为空");
                return;
            }
            if (txtczy.Text == "")
            {
                MessageBox.Show("操作员不可为空");
                return;
            }
            if(!float.TryParse(txtyw.Text,out fyw))
            {
                MessageBox.Show("油温不为数字类型");
                return;
            }
            syuanyin = rtbyuanyin.Text;
            scaozuoyuan = txtczy.Text;
            this.DialogResult = DialogResult.OK;
            this.Close();
        }
    }
}
